package com.loveprogrammer.oss.common.uploader;

import com.aliyun.oss.OSSClient;

/**
 * 抽象上传器
 *
 * @author 王旭
 * @version 1.0
 */
public abstract class AbstractUploader implements Uploader {
    // 上传路径
    protected String uploadPath;
    // 上传客户端
    private OSSClient ossClient;

    public AbstractUploader() {
    }

    AbstractUploader(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    AbstractUploader(UploadPathBuilder uploadPathBuilder) {
        this.uploadPath = uploadPathBuilder.build();
    }


    @Override
    public String getUploadPath() {
        return uploadPath;
    }

}
